#include"main_info.h"

extern MainInfo* MainInfo_ = NULL;

MainInfo::MainInfo( int speed_quantity ) {
	this->speed_quantity = speed_quantity;
  delta_speed = 2.0f * 4.8f / speed_quantity;
  if( speed_quantity%2 != 0 ) {
    printf("Error speed quantity must be odd\n");
    return;
  }
  speed_values = new double[speed_quantity];
  for( int i=0; i<speed_quantity; i++ ) {
    speed_values[i] = -4.8f + 4.8f*2.0f*i/( speed_quantity-1 );
  }
  FLAG_limiter = 3; // 1 - MC

  g_speed = new double**[speed_quantity];
  for(int i=0; i<speed_quantity; i++) {
    g_speed[i] = new double*[speed_quantity];
    for(int j=0; j<speed_quantity; j++) {
      g_speed[i][j] = new double[speed_quantity];
    }
  }
  return;
}